package com.leessy.r229.server.http.databean

/**
 * @author : Created by liucheng. on 2021/01/13
 * @description : -
 */
class RequestBean {
    //2B164521A01
    var sn = ""
    var time = ""
    var config: HeartbeatParamsBean? = null
    var tasks: List<Tasks>? = null
    var logs: List<LogsDataBean>? = null
}


class HeartbeatParamsBean {
    var mac: String? = null//以太网mac
    var wifimac: String? = null//wifimac

    //    var sn: String? = null //设备硬件sn编码 唯一
    var deviceName: String? = null  //当前设备名称
    var systemVer: String? = null  //系统版本号，关于本机里面显示的那个

    var memoryTotal: String? = null  //设备存储总大小
    var memoryAvailable: String? = null  //设备存储可以用大小
    var ramTotal: String? = null  //设备运行内存总大小
    var ramUsed: String? = null  //设备运行内存已使用大小

    var installedList: String? = null  //设备已安装app列表

    //新增设备信息
    var ip: String? = null
    var ICCID: String? = null
    var IMSI: String? = null
    var IMEI: String? = null
    var WiFiSignal: String? = null
    var MobileSignal: String? = null
    var taskId = 0L  //最后执行完成的taskId，有可能未完成

}

class Tasks {
    var taskId = 0L
    var taskType = 0
    var taskStatus = 0  //任务完成状态(0-执行中 1-已完成 2-已失败)
    var progress = 0  //任务完成进度
    var taskError: String? = null
}

class LogsDataBean {
    var bucketName: String? = null
    var objectName: String? = null
    var fileCreateAt: String? = null
    var fileUpdateAt: String? = null
    var logFileSize = 0
    var logType = 0
    var taskId = 0L
}


class StatusBean {
    var sn = ""
    var time = ""
    var mac = ""
    var wifimac = ""
    var systemVer = ""
    var memoryTotal = ""
    var memoryAvailable = ""
    var ramTotal = ""
    var ramUsed = ""
    var iccid = ""
    var IMSI = ""
    var internalIP = ""
    var externalIP = ""
    var commWay = ""
    var appVer = ""
    var installedList = ""
//    var installedList = ArrayList<AppInfoBean>()
    var encipherChip =false
    var otaDisable =false
    var heatbeatInterval = 0
    var deviceExpireDay = 0
}

class AppInfoBean{
    /**
     * 包名
     */
    var pgName = ""

    /**
     * 程序名
     */
    var appName = ""

    /**
     * 版本号
     */
    var appVer = ""
}


//{
//    "sn": "string",
//    "time": "20241231085733",
//    "logs": [
//    {
//        "bucketName": "string",
//        "objectName": "string",
//        "logFileSize": 0,
//        "logType": 0,
//        "fileCreateAt": "2024-12-31T08:57:33.960Z",
//        "fileUpdateAt": "2024-12-31T08:57:33.960Z"
//    }
//    ]
//}

//{
//    "sn": "2B164521A01",
//    "time": "20241231113554",
//    "config": {
//    "deviceName": "string",
//    "heatbeatInterval": 0,
//    "installationCtrl": true,
//    "installationList": "string",
//    "appEnableCtrl": true,
//    "appEnableList": "string",
//    "deviceExpire": true,
//    "deviceExpireMsg": "string",
//    "deviceLock": true,
//    "deviceAutoLockDate": "string",
//    "memoryWarm": 1024,
//    "ramWarm": 1024,
//    "memoryPercWarm": 80,
//    "ramPercWarm": 80,
//    "autoRestartAt": "03:00:00"
//},
//    "tasks": [
//    {
//        "taskId": 0,
//        "taskType": 0,
//        "taskStatus": 0,
//        "taskError": "string"
//    }
//    ]
//}
